import API from './api'

export default {
  getCategoryPage(params, callback, errorCallback) {
    API.post('/live/liveBasic/getCategoryPage', params, callback, errorCallback)
  },
  createCategory(params, callback, errorCallback) {
    API.post('/live/liveBasic/createCategory', params, callback, errorCallback)
  },
  updateCategory(params, callback, errorCallback) {
    API.post('/live/liveBasic/updateCategory', params, callback, errorCallback)
  },
  getCategoryList(params, callback, errorCallback) {
    API.post('/live/liveBasic/getCategoryList', params, callback, errorCallback)
  },
  getLiveUserPage(params, callback, errorCallback) {
    API.post('/live/liveBasic/getLiveUserPage', params, callback, errorCallback)
  },
  updateLiveUser(params, callback, errorCallback) {
    API.post('/live/liveBasic/updateLiveUser', params, callback, errorCallback)
  },
  getLiveAnchorPage(params, callback, errorCallback) {
    API.post('/live/liveBasic/getLiveAnchorPage', params, callback, errorCallback)
  },
  getLiveAnchorInfo(params, callback, errorCallback) {
    API.get('/live/liveBasic/getLiveAnchorInfo', params, callback, errorCallback)
  },
  addLiveAnchor(params, callback, errorCallback) {
    API.post('/live/liveBasic/addLiveAnchor', params, callback, errorCallback)
  },
  updateLiveAnchor(params, callback, errorCallback) {
    API.post('/live/liveBasic/updateLiveAnchor', params, callback, errorCallback)
  },
  getLiveAnchorList(params, callback, errorCallback) {
    API.post('/live/liveBasic/getLiveAnchorList', params, callback, errorCallback)
  },
  getLiveIpList(params, callback, errorCallback) { //获取内网所有IP
    API.post('/live/liveBasic/getLiveIpList', params, callback, errorCallback)
  },
  addLiveIp(params, callback, errorCallback) { // 添加内网IP
    API.post('/live/liveBasic/addLiveIp', params, callback, errorCallback)
  },
  updateLiveIp(params, callback, errorCallback){
    API.post('/live/liveBasic/updateLiveIp', params, callback, errorCallback)
  },
  deleteLiveIp(params, callback, errorCallback){
    API.get('/live/liveBasic/deleteLiveIp', params, callback, errorCallback)
  }

}
